import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/common/app_colors.dart';
import 'package:flutter/material.dart';

class NormalListItem extends StatelessWidget {
  final VoidCallback onTap;
  final String title;
  final String right;

  const NormalListItem({Key key, this.onTap, this.title, this.right})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return PressedOpacityButton(
        color: Colors.white,
        onPressed: onTap,
        padding: EdgeInsets.symmetric(
          horizontal: getDp(35),
          vertical: getDp(15),
        ),
        border: Border(
            bottom: BorderSide(
          color: aceGrayColor,
          width: getDp(0.5),
        )),
        child: Row(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            Text(
              '$title',
              style: TextStyle(
                color: aceBlackColor,
                fontSize: getSp(16),
                fontWeight: FontWeight.w400,
                height: 1,
              ),
            ),
            Text(
              '$right',
              style: TextStyle(
                color: aceBlackColor,
                fontSize: getSp(16),
                fontWeight: FontWeight.w400,
                height: 1,
              ),
            ),
          ],
        ));
  }
}
